package com.zhss.security.demospringsecurity.mapper;

import com.zhss.security.demospringsecurity.entity.user.Role;
import com.zhss.security.demospringsecurity.entity.user.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName UseMapper
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2021/9/10 17:30
 * @Version 1.0
 */
@Mapper
public interface UserMapper {
	List<Role> getRolesByUid(Integer id);

	User loadUserByUsername(String username);

	Integer updatePassword(String username, String newPassword);
}
